﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AviumX.AviumCore.Screen.Graphics.Images
{
    class Mouse
    {
        public InteScreen BackBuffer = new InteScreen(12, 16);
        public int width = 12;
        public int height = 16;
        public uint[] CursorImage = {0,0,0,0,0,0,1,0,0,0,0,0,
                                     0,0,0,0,0,0,1,0,0,0,0,0,
                                     0,0,0,0,0,0,1,0,0,0,0,0,
                                     0,0,0,0,0,1,2,1,0,0,0,0,
                                     0,0,0,0,1,2,2,2,1,0,0,0,
                                     0,0,0,1,2,2,2,2,2,1,0,0,
                                     0,0,1,2,2,2,2,2,2,2,1,0,
                                     0,1,1,1,1,1,1,1,1,1,1,1,
                                     0,0,0,0,0,0,0,0,0,0,0,0,
                                     0,0,0,0,0,0,0,0,0,0,0,0,
                                     0,0,0,0,0,0,0,0,0,0,0,0,
                                     0,0,0,0,0,0,0,0,0,0,0,0,
                                     0,0,0,0,0,0,0,0,0,0,0,0,
                                     0,0,0,0,0,0,0,0,0,0,0,0,
                                     0,0,0,0,0,0,0,0,0,0,0,0,
                                     0,0,0,0,0,0,0,0,0,0,0,0};

        /*
         * This is test code, but it works. So dont mess with it.
         */

        public int lastx = 0;
        public int lasty = 0;
        public int x = 0;
        public int y = 0;
        public void UpdateLocation(int X, int Y)
        {
            //Shift the locations.
            lastx = x;
            lasty = y;
            x = X;
            y = Y;
        }
    }
}
